package behavior.ChainOfResponsibility;

import java.math.BigDecimal;

/**
 * Created by LYJ on 2016/10/20.
 * 抽象处理角色
 */
public abstract class ConsumeHandler {
    private ConsumeHandler nextHandler;

    public ConsumeHandler getNextHandler() {
        return nextHandler;
    }

    public void setNextHandler(ConsumeHandler nextHandler) {
        this.nextHandler = nextHandler;
    }
    public abstract void doHandler(String user, BigDecimal free);
}
